libxl: suspend: Fix suspend wait corner cases
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 6 Dec 2013 16:40:08 +0000 (16:40 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 17 Mar 2014 15:54:00 +0000 (15:54 +0000)
commit8ae14b99e00cd9a42ab4cd6538de987783f21de1
tree79ed56e95eaf649549912925ed4ad7e87758e32b
parent926e112b20bd6b928df43c6674404e8353e57915
libxl: suspend: Fix suspend wait corner cases

When we are waiting for a guest to suspend, this suspend operation
would continue to wait (until the timeout) if the guest was destroyed
or shut down for another reason, or if xc_domain_getinfolist failed.

Handle these cases correctly, as errors.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v3: Remove unwanted error call after a new "goto err".
tools/libxl/libxl_dom.c